import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Router from 'vue-router'
import {Lazyload} from 'vant';
import wxApi from '@/libs/wx';

Vue.prototype.$wx = wxApi;

Vue.use(Lazyload);
// 导入全局常量组件
import global from './libs/global.vue'


Vue.prototype.GLOBAL = global;
//适配组件
import 'amfe-flexible/index.js'
//全局css字体
import '@/assets/css/fontFamily.css'
//重置css
import '@/assets/css/reset.css'
import {APP, TOKEN_KEY} from "./libs/util";

Vue.config.productionTip = false;
//解决路由报错
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
};
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');

